home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •Games Parlour• / •Classic Board Games• / Mastermind •••• / Mastermind ееее / background_2633.txt < prev    next >
Text File  |  1990-10-02  |  22KB  |  876 lines

  1. -- background: 2633 from stack: in
  2. -- bmap block id: 3585
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 81
  10. -- high flags: 2002
  11. -- rect: left=410 top=143 right=255 bottom=462
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 2
  16. -- text size: 18
  17. -- style flags: 256
  18. -- line height: 24
  19. -- part name: Solution
  20.  
  21.  
  22. -- part 4 (button)
  23. -- low flags: 00
  24. -- high flags: 2000
  25. -- rect: left=399 top=311 right=331 bottom=426
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 21700 / 21700
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Home
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   visual effect dissolve slowly to black
  37.   visual effect iris open slow to white
  38.   visual effect dissolve
  39.   go to home
  40. end mouseUp
  41.  
  42.  
  43.  
  44. -- part 7 (field)
  45. -- low flags: 01
  46. -- high flags: 2002
  47. -- rect: left=58 top=131 right=263 bottom=85
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 0
  51. -- font id: 2
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: Turn1
  56.  
  57.  
  58. -- part 8 (field)
  59. -- low flags: 01
  60. -- high flags: 6002
  61. -- rect: left=91 top=131 right=263 bottom=118
  62. -- title width / last selected line: 0
  63. -- icon id / first selected line: 0 / 0
  64. -- text alignment: 0
  65. -- font id: 2
  66. -- text size: 12
  67. -- style flags: 0
  68. -- line height: 16
  69. -- part name: Turn2
  70.  
  71.  
  72. -- part 9 (field)
  73. -- low flags: 01
  74. -- high flags: 2002
  75. -- rect: left=124 top=131 right=263 bottom=151
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 0
  79. -- font id: 2
  80. -- text size: 12
  81. -- style flags: 0
  82. -- line height: 16
  83. -- part name: Turn3
  84.  
  85.  
  86. -- part 10 (field)
  87. -- low flags: 01
  88. -- high flags: 2002
  89. -- rect: left=157 top=131 right=263 bottom=184
  90. -- title width / last selected line: 0
  91. -- icon id / first selected line: 0 / 0
  92. -- text alignment: 0
  93. -- font id: 2
  94. -- text size: 12
  95. -- style flags: 0
  96. -- line height: 16
  97. -- part name: Turn4
  98.  
  99.  
  100. -- part 11 (field)
  101. -- low flags: 01
  102. -- high flags: 2002
  103. -- rect: left=190 top=131 right=263 bottom=217
  104. -- title width / last selected line: 0
  105. -- icon id / first selected line: 0 / 0
  106. -- text alignment: 0
  107. -- font id: 2
  108. -- text size: 12
  109. -- style flags: 0
  110. -- line height: 16
  111. -- part name: Turn5
  112.  
  113.  
  114. -- part 12 (field)
  115. -- low flags: 01
  116. -- high flags: 2002
  117. -- rect: left=224 top=131 right=263 bottom=251
  118. -- title width / last selected line: 0
  119. -- icon id / first selected line: 0 / 0
  120. -- text alignment: 0
  121. -- font id: 2
  122. -- text size: 12
  123. -- style flags: 0
  124. -- line height: 16
  125. -- part name: Turn6
  126.  
  127.  
  128. -- part 13 (field)
  129. -- low flags: 01
  130. -- high flags: 2002
  131. -- rect: left=258 top=131 right=263 bottom=285
  132. -- title width / last selected line: 0
  133. -- icon id / first selected line: 0 / 0
  134. -- text alignment: 0
  135. -- font id: 2
  136. -- text size: 12
  137. -- style flags: 0
  138. -- line height: 16
  139. -- part name: Turn7
  140.  
  141.  
  142. -- part 14 (field)
  143. -- low flags: 01
  144. -- high flags: 2002
  145. -- rect: left=292 top=131 right=263 bottom=319
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 0
  149. -- font id: 2
  150. -- text size: 12
  151. -- style flags: 0
  152. -- line height: 16
  153. -- part name: Turn8
  154.  
  155.  
  156. -- part 15 (field)
  157. -- low flags: 01
  158. -- high flags: 2002
  159. -- rect: left=326 top=131 right=263 bottom=353
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 0 / 0
  162. -- text alignment: 0
  163. -- font id: 2
  164. -- text size: 12
  165. -- style flags: 0
  166. -- line height: 16
  167. -- part name: Turn9
  168.  
  169.  
  170. -- part 16 (field)
  171. -- low flags: 01
  172. -- high flags: 2002
  173. -- rect: left=359 top=131 right=263 bottom=386
  174. -- title width / last selected line: 0
  175. -- icon id / first selected line: 0 / 0
  176. -- text alignment: 0
  177. -- font id: 2
  178. -- text size: 12
  179. -- style flags: 0
  180. -- line height: 16
  181. -- part name: Turn10
  182.  
  183.  
  184. -- part 17 (button)
  185. -- low flags: 00
  186. -- high flags: A002
  187. -- rect: left=15 top=38 right=57 bottom=96
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 0 / 0
  190. -- text alignment: 1
  191. -- font id: 0
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: New Puzzle
  196. ----- HyperTalk script -----
  197. on mouseUp
  198.   set cursor to 4
  199.   set lockscreen to true
  200.   hide bkgnd field solution
  201.   Put "" into bkgnd field solution
  202.   Put bkgnd field colorcount into thecolors
  203.   repeat with x=1 to 4
  204.     put the random of thecolors into itsrandom
  205.     if itsrandom is 1 then
  206.       Put "R" into Peg
  207.     else if itsrandom is 2 then
  208.       Put "B" into Peg
  209.     else if itsrandom is 3 then
  210.       Put "G" into Peg
  211.     else if itsrandom is 4 then
  212.       Put "Y" into Peg
  213.     else if itsrandom is 5 then
  214.       Put "P" into Peg
  215.     else if itsrandom is 6 then
  216.       Put "O" into Peg
  217.     else if itsrandom is 7 then
  218.       Put "F" into Peg
  219.     else if itsrandom is 8 then
  220.       Put "I" into Peg
  221.     End if
  222.     Put peg into line x of sequence
  223.   end repeat
  224.   Put sequence into bkgnd field solution
  225.   repeat with x=1 to 10
  226.     put "turn"&x into holder
  227.     put "status"&x into tholder
  228.     Put "" into bkgnd field holder
  229.     Put "" into bkgnd field tholder
  230.     set showlines of bkgnd field holder to false
  231.     set textstyle of bkgnd field holder to plain
  232.   end repeat
  233.   Put "1" into bkgnd field "turn field"
  234.   set showlines of bkgnd field Turn1 to true
  235.   Put R into line 1 of bkgnd field turn1
  236.   Put R into line 3 of bkgnd field turn1
  237.   Put R into line 5 of bkgnd field turn1
  238.   Put R into line 7 of bkgnd field turn1
  239.  
  240.  
  241. end mouseUp
  242.  
  243.  
  244.  
  245. -- part 19 (button)
  246. -- low flags: 00
  247. -- high flags: A002
  248. -- rect: left=15 top=95 right=117 bottom=103
  249. -- title width / last selected line: 0
  250. -- icon id / first selected line: 0 / 0
  251. -- text alignment: 1
  252. -- font id: 0
  253. -- text size: 12
  254. -- style flags: 0
  255. -- line height: 16
  256. -- part name: Evaluate
  257. ----- HyperTalk script -----
  258. on mouseUp
  259.   set lockscreen to true
  260.   Put bkgnd field "turn field" into whichturn
  261.   Put "Turn"&whichturn into holder
  262.   if visible of bkgnd field solution is true then exit mouseup
  263.   Put bkgnd field  holder into theguess
  264.   Put bkgnd field Solution into thecombo
  265.   Put "" into yourstatus
  266.  
  267.   if line 1 of thecombo is line 1 of theguess then
  268.     Put "¬Æ" into line 1 of theguess
  269.     put "black"&return after yourstatus
  270.     Put "‚àë" into line 1 of thecombo
  271.   end if
  272.  
  273.   if line 2 of thecombo is line 3 of theguess then
  274.     Put "¬Æ" into line 3 of theguess
  275.     put "black"&return after yourstatus
  276.     Put "‚àë" into line 2 of thecombo
  277.   end if
  278.  
  279.   if line 3 of thecombo is line 5 of theguess then
  280.     Put "¬Æ" into line 5 of theguess
  281.     put "black"&return after yourstatus
  282.     Put "‚àë" into line 3 of thecombo
  283.   end if
  284.  
  285.   if line 4 of thecombo is line 7 of theguess then
  286.     Put "¬Æ" into line 7 of theguess
  287.     put "black"&return after yourstatus
  288.     Put "‚àë" into line 4 of thecombo
  289.   end if
  290.  
  291.  
  292.   if thecombo contains line 1 of theguess then
  293.     Put offset(line 1 of theguess,thecombo) into position
  294.     put "white"&return after yourstatus
  295.     Put "‚àë" into char position of thecombo
  296.   end if
  297.   if thecombo contains line 3 of theguess then
  298.     Put offset(line 3 of theguess,thecombo) into position
  299.     put "white"&return after yourstatus
  300.     Put "‚àë" into char position of thecombo
  301.   end if
  302.   if thecombo contains line 5 of theguess then
  303.     Put offset(line 5 of theguess,thecombo) into position
  304.     put "white"&return after yourstatus
  305.     Put "‚àë" into char position of thecombo
  306.   end if
  307.   if thecombo contains line 7 of theguess then
  308.     Put offset(line 7 of theguess,thecombo) into position
  309.     put "white"&return after yourstatus
  310.     Put "‚àë" into char position of thecombo
  311.   end if
  312.   Put "status"&whichturn into holder
  313.   Put yourstatus into bkgnd field holder
  314.  
  315.  
  316.   if yourstatus is "black"&return&"black"&return&"black"&return&"black"&return
  317.   then
  318.   Put "Turn"&whichturn into holder
  319.   set showlines of bkgnd field  holder to false
  320.   set textstyle of bkgnd field  holder to bold
  321.   show bkgnd field solution
  322.   play "applause"
  323.   Put "Congratulations, you did it in "&whichturn&&"turns!!" into hold
  324.   answer hold with "Thanks" or "Was Nothing"
  325.   exit to hypercard
  326. end if
  327.  
  328.  
  329.  
  330.  
  331. Put "Turn"&whichturn into holder
  332. set showlines of bkgnd field  holder to false
  333. Put bkgnd field holder into sideline
  334.  
  335. if whichturn<10 then
  336.   Put whichturn+1 into bkgnd field "turn field"
  337.   Put "Turn"&whichturn+1 into holder
  338.   set showlines of bkgnd field  holder to true
  339.   Put sideline into bkgnd field holder
  340. else
  341.   show bkgnd field solution
  342.   Put 0 into bkgnd field "turn field"
  343.   Play "boing"
  344.   answer "Sorry, you couldn't do it!" with "I Know" or "Quiet!"
  345.   exit to hypercard
  346. end if
  347.  
  348.  
  349. end mouseUp
  350.  
  351.  
  352.  
  353. -- part 20 (button)
  354. -- low flags: 00
  355. -- high flags: 2000
  356. -- rect: left=22 top=134 right=158 bottom=52
  357. -- title width / last selected line: 0
  358. -- icon id / first selected line: 6179 / 6179
  359. -- text alignment: 1
  360. -- font id: 0
  361. -- text size: 12
  362. -- style flags: 0
  363. -- line height: 16
  364. -- part name: advance
  365. ----- HyperTalk script -----
  366. on mouseUp
  367.  
  368.  
  369.   Put bkgnd field colorcount into thecolors
  370.   Put bkgnd field "turn field" into whichturn
  371.   Put "Turn"&whichturn into holder
  372.  
  373.   if visible of bkgnd field solution is true then exit mouseup
  374.   If line 1 of bkgnd field holder is "R" then
  375.     Put B into line 1 of bkgnd field holder
  376.   else if line 1 of bkgnd field holder is "B" then
  377.     Put G into line 1 of bkgnd field holder
  378.   else if line 1 of bkgnd field holder is "G" then
  379.     If thecolors>3 then
  380.       Put Y into line 1 of bkgnd field holder
  381.     else
  382.       Put R into line 1 of bkgnd field holder
  383.     end if
  384.  
  385.   else if line 1 of bkgnd field holder is "Y" then
  386.     If thecolors>4 then
  387.       Put P into line 1 of bkgnd field holder
  388.     else
  389.       Put R into line 1 of bkgnd field holder
  390.     end if
  391.   else if line 1 of bkgnd field holder is "P" then
  392.     If thecolors>5 then
  393.       Put O into line 1 of bkgnd field holder
  394.     else
  395.       Put R into line 1 of bkgnd field holder
  396.     end if
  397.   else if line 1 of bkgnd field holder is "O" then
  398.     If thecolors>6 then
  399.       Put F into line 1 of bkgnd field holder
  400.     else
  401.       Put R into line 1 of bkgnd field holder
  402.     end if
  403.   else if line 1 of bkgnd field holder is "F" then
  404.     If thecolors>7 then
  405.       Put I into line 1 of bkgnd field holder
  406.     else
  407.       Put R into line 1 of bkgnd field holder
  408.     end if
  409.   else if line 1 of bkgnd field holder is "I" then
  410.     Put R into line 1 of bkgnd field holder
  411.   else
  412.     put R into line 1 of bkgnd field holder
  413.   end if
  414.  
  415. end mouseUp
  416.  
  417.  
  418.  
  419. -- part 25 (field)
  420. -- low flags: 01
  421. -- high flags: 0002
  422. -- rect: left=263 top=68 right=93 bottom=304
  423. -- title width / last selected line: 0
  424. -- icon id / first selected line: 0 / 0
  425. -- text alignment: 1
  426. -- font id: 2
  427. -- text size: 20
  428. -- style flags: 256
  429. -- line height: 26
  430. -- part name: Turn Field
  431.  
  432.  
  433. -- part 26 (field)
  434. -- low flags: 01
  435. -- high flags: 0002
  436. -- rect: left=57 top=277 right=328 bottom=86
  437. -- title width / last selected line: 0
  438. -- icon id / first selected line: 0 / 0
  439. -- text alignment: 0
  440. -- font id: 3
  441. -- text size: 9
  442. -- style flags: 0
  443. -- line height: 12
  444. -- part name: status1
  445.  
  446.  
  447. -- part 27 (field)
  448. -- low flags: 01
  449. -- high flags: 0002
  450. -- rect: left=90 top=277 right=328 bottom=119
  451. -- title width / last selected line: 0
  452. -- icon id / first selected line: 0 / 0
  453. -- text alignment: 0
  454. -- font id: 3
  455. -- text size: 9
  456. -- style flags: 0
  457. -- line height: 12
  458. -- part name: status2
  459.  
  460.  
  461. -- part 28 (field)
  462. -- low flags: 01
  463. -- high flags: 0002
  464. -- rect: left=123 top=277 right=328 bottom=152
  465. -- title width / last selected line: 0
  466. -- icon id / first selected line: 0 / 0
  467. -- text alignment: 0
  468. -- font id: 3
  469. -- text size: 9
  470. -- style flags: 0
  471. -- line height: 12
  472. -- part name: status3
  473.  
  474.  
  475. -- part 29 (field)
  476. -- low flags: 01
  477. -- high flags: 0002
  478. -- rect: left=156 top=277 right=328 bottom=185
  479. -- title width / last selected line: 0
  480. -- icon id / first selected line: 0 / 0
  481. -- text alignment: 0
  482. -- font id: 3
  483. -- text size: 9
  484. -- style flags: 0
  485. -- line height: 12
  486. -- part name: status4
  487.  
  488.  
  489. -- part 30 (field)
  490. -- low flags: 01
  491. -- high flags: 0002
  492. -- rect: left=189 top=277 right=328 bottom=218
  493. -- title width / last selected line: 0
  494. -- icon id / first selected line: 0 / 0
  495. -- text alignment: 0
  496. -- font id: 3
  497. -- text size: 9
  498. -- style flags: 0
  499. -- line height: 12
  500. -- part name: status5
  501.  
  502.  
  503. -- part 31 (field)
  504. -- low flags: 01
  505. -- high flags: 0002
  506. -- rect: left=223 top=277 right=328 bottom=252
  507. -- title width / last selected line: 0
  508. -- icon id / first selected line: 0 / 0
  509. -- text alignment: 0
  510. -- font id: 3
  511. -- text size: 9
  512. -- style flags: 0
  513. -- line height: 12
  514. -- part name: status6
  515.  
  516.  
  517. -- part 32 (field)
  518. -- low flags: 01
  519. -- high flags: 0002
  520. -- rect: left=257 top=277 right=328 bottom=286
  521. -- title width / last selected line: 0
  522. -- icon id / first selected line: 0 / 0
  523. -- text alignment: 0
  524. -- font id: 3
  525. -- text size: 9
  526. -- style flags: 0
  527. -- line height: 12
  528. -- part name: status7
  529.  
  530.  
  531. -- part 33 (field)
  532. -- low flags: 01
  533. -- high flags: 0002
  534. -- rect: left=291 top=277 right=328 bottom=320
  535. -- title width / last selected line: 0
  536. -- icon id / first selected line: 0 / 0
  537. -- text alignment: 0
  538. -- font id: 3
  539. -- text size: 9
  540. -- style flags: 0
  541. -- line height: 12
  542. -- part name: status8
  543.  
  544.  
  545. -- part 34 (field)
  546. -- low flags: 01
  547. -- high flags: 0002
  548. -- rect: left=325 top=277 right=328 bottom=354
  549. -- title width / last selected line: 0
  550. -- icon id / first selected line: 0 / 0
  551. -- text alignment: 0
  552. -- font id: 3
  553. -- text size: 9
  554. -- style flags: 0
  555. -- line height: 12
  556. -- part name: status9
  557.  
  558.  
  559. -- part 35 (field)
  560. -- low flags: 01
  561. -- high flags: 0002
  562. -- rect: left=358 top=277 right=328 bottom=387
  563. -- title width / last selected line: 0
  564. -- icon id / first selected line: 0 / 0
  565. -- text alignment: 0
  566. -- font id: 3
  567. -- text size: 9
  568. -- style flags: 0
  569. -- line height: 12
  570. -- part name: status10
  571.  
  572.  
  573. -- part 38 (field)
  574. -- low flags: 01
  575. -- high flags: 0002
  576. -- rect: left=457 top=32 right=51 bottom=490
  577. -- title width / last selected line: 0
  578. -- icon id / first selected line: 0 / 0
  579. -- text alignment: 1
  580. -- font id: 2
  581. -- text size: 14
  582. -- style flags: 256
  583. -- line height: 18
  584. -- part name: Colorcount
  585.  
  586.  
  587. -- part 39 (button)
  588. -- low flags: 00
  589. -- high flags: 2002
  590. -- rect: left=489 top=23 right=41 bottom=509
  591. -- title width / last selected line: 0
  592. -- icon id / first selected line: 16692 / 16692
  593. -- text alignment: 1
  594. -- font id: 0
  595. -- text size: 12
  596. -- style flags: 0
  597. -- line height: 16
  598. -- part name: New Button
  599. ----- HyperTalk script -----
  600. on mouseUp
  601.   put bkgnd field Colorcount into colornum
  602.   if visible of bkgnd field solution is false then exit mouseup
  603.   if colornum is 3 then
  604.     put 4 into newcolornum
  605.   else if colornum is 4 then
  606.     put 5 into newcolornum
  607.   else if colornum is 5 then
  608.     put 6 into newcolornum
  609.   else if colornum is 6 then
  610.     put 7 into newcolornum
  611.   else if colornum is 7 then
  612.     put 8 into newcolornum
  613.   else if colornum is 8 then
  614.     put 3 into newcolornum
  615.   else
  616.     Put 3 into newcolornum
  617.   end if
  618.   Put newcolornum into bkgnd field colorcount
  619.   put newcolornum*newcolornum*newcolornum*newcolornum into bkgnd field Permcount
  620.  
  621. end mouseUp
  622.  
  623.  
  624.  
  625. -- part 40 (button)
  626. -- low flags: 00
  627. -- high flags: 2002
  628. -- rect: left=489 top=40 right=58 bottom=509
  629. -- title width / last selected line: 0
  630. -- icon id / first selected line: 3584 / 3584
  631. -- text alignment: 1
  632. -- font id: 0
  633. -- text size: 12
  634. -- style flags: 0
  635. -- line height: 16
  636. -- part name: New Button
  637. ----- HyperTalk script -----
  638. on mouseUp
  639.   if visible of bkgnd field solution is false then exit mouseup
  640.   put bkgnd field Colorcount into colornum
  641.  
  642.   if colornum is 3 then
  643.     put 8 into newcolornum
  644.   else if colornum is 8 then
  645.     put 7 into newcolornum
  646.   else if colornum is 7 then
  647.     put 6 into newcolornum
  648.   else if colornum is 6 then
  649.     put 5 into newcolornum
  650.   else if colornum is 5 then
  651.     put 4 into newcolornum
  652.   else if colornum is 4 then
  653.     put 3 into newcolornum
  654.   else if colornum is 3 then
  655.     put 7 into newcolornum
  656.   else
  657.     Put 3 into newcolornum
  658.   end if
  659.   Put newcolornum into bkgnd field colorcount
  660.   put newcolornum*newcolornum*newcolornum*newcolornum into bkgnd field Permcount
  661.  
  662. end mouseUp
  663.  
  664.  
  665.  
  666. -- part 41 (button)
  667. -- low flags: 00
  668. -- high flags: 2000
  669. -- rect: left=22 top=164 right=188 bottom=52
  670. -- title width / last selected line: 0
  671. -- icon id / first selected line: 6179 / 6179
  672. -- text alignment: 1
  673. -- font id: 0
  674. -- text size: 12
  675. -- style flags: 0
  676. -- line height: 16
  677. -- part name: advance
  678. ----- HyperTalk script -----
  679. on mouseUp
  680.  
  681.  
  682.   Put bkgnd field colorcount into thecolors
  683.   Put bkgnd field "turn field" into whichturn
  684.   Put "Turn"&whichturn into holder
  685.  
  686.   if visible of bkgnd field solution is true then exit mouseup
  687.   If line 3 of bkgnd field holder is "R" then
  688.     Put B into line 3 of bkgnd field holder
  689.   else if line 3 of bkgnd field holder is "B" then
  690.     Put G into line 3 of bkgnd field holder
  691.   else if line 3 of bkgnd field holder is "G" then
  692.     If thecolors>3 then
  693.       Put Y into line 3 of bkgnd field holder
  694.     else
  695.       Put R into line 3 of bkgnd field holder
  696.     end if
  697.  
  698.   else if line 3 of bkgnd field holder is "Y" then
  699.     If thecolors>4 then
  700.       Put P into line 3 of bkgnd field holder
  701.     else
  702.       Put R into line 3 of bkgnd field holder
  703.     end if
  704.   else if line 3 of bkgnd field holder is "P" then
  705.     If thecolors>5 then
  706.       Put O into line 3 of bkgnd field holder
  707.     else
  708.       Put R into line 3 of bkgnd field holder
  709.     end if
  710.   else if line 3 of bkgnd field holder is "O" then
  711.     If thecolors>6 then
  712.       Put F into line 3 of bkgnd field holder
  713.     else
  714.       Put R into line 3 of bkgnd field holder
  715.     end if
  716.   else if line 3 of bkgnd field holder is "F" then
  717.     If thecolors>7 then
  718.       Put I into line 3 of bkgnd field holder
  719.     else
  720.       Put R into line 3 of bkgnd field holder
  721.     end if
  722.   else if line 3 of bkgnd field holder is "I" then
  723.     Put R into line 3 of bkgnd field holder
  724.   else
  725.     put R into line 3 of bkgnd field holder
  726.   end if
  727.  
  728. end mouseUp
  729.  
  730.  
  731.  
  732. -- part 42 (button)
  733. -- low flags: 00
  734. -- high flags: 2000
  735. -- rect: left=22 top=197 right=221 bottom=52
  736. -- title width / last selected line: 0
  737. -- icon id / first selected line: 6179 / 6179
  738. -- text alignment: 1
  739. -- font id: 0
  740. -- text size: 12
  741. -- style flags: 0
  742. -- line height: 16
  743. -- part name: advance
  744. ----- HyperTalk script -----
  745. on mouseUp
  746.  
  747.  
  748.   Put bkgnd field colorcount into thecolors
  749.   Put bkgnd field "turn field" into whichturn
  750.   Put "Turn"&whichturn into holder
  751.  
  752.   if visible of bkgnd field solution is true then exit mouseup
  753.   If line 5 of bkgnd field holder is "R" then
  754.     Put B into line 5 of bkgnd field holder
  755.   else if line 5 of bkgnd field holder is "B" then
  756.     Put G into line 5 of bkgnd field holder
  757.   else if line 5 of bkgnd field holder is "G" then
  758.     If thecolors>3 then
  759.       Put Y into line 5 of bkgnd field holder
  760.     else
  761.       Put R into line 5 of bkgnd field holder
  762.     end if
  763.  
  764.   else if line 5 of bkgnd field holder is "Y" then
  765.     If thecolors>4 then
  766.       Put P into line 5 of bkgnd field holder
  767.     else
  768.       Put R into line 5 of bkgnd field holder
  769.     end if
  770.   else if line 5 of bkgnd field holder is "P" then
  771.     If thecolors>5 then
  772.       Put O into line 5 of bkgnd field holder
  773.     else
  774.       Put R into line 5 of bkgnd field holder
  775.     end if
  776.   else if line 5 of bkgnd field holder is "O" then
  777.     If thecolors>6 then
  778.       Put F into line 5 of bkgnd field holder
  779.     else
  780.       Put R into line 5 of bkgnd field holder
  781.     end if
  782.   else if line 5 of bkgnd field holder is "F" then
  783.     If thecolors>7 then
  784.       Put I into line 5 of bkgnd field holder
  785.     else
  786.       Put R into line 5 of bkgnd field holder
  787.     end if
  788.   else if line 5 of bkgnd field holder is "I" then
  789.     Put R into line 5 of bkgnd field holder
  790.   else
  791.     put R into line 5 of bkgnd field holder
  792.   end if
  793.  
  794. end mouseUp
  795.  
  796.  
  797.  
  798. -- part 43 (button)
  799. -- low flags: 00
  800. -- high flags: 2000
  801. -- rect: left=22 top=229 right=253 bottom=52
  802. -- title width / last selected line: 0
  803. -- icon id / first selected line: 6179 / 6179
  804. -- text alignment: 1
  805. -- font id: 0
  806. -- text size: 12
  807. -- style flags: 0
  808. -- line height: 16
  809. -- part name: advance
  810. ----- HyperTalk script -----
  811. on mouseUp
  812.  
  813.  
  814.   Put bkgnd field colorcount into thecolors
  815.   Put bkgnd field "turn field" into whichturn
  816.   Put "Turn"&whichturn into holder
  817.  
  818.   if visible of bkgnd field solution is true then exit mouseup
  819.   If line 7 of bkgnd field holder is "R" then
  820.     Put B into line 7 of bkgnd field holder
  821.   else if line 7 of bkgnd field holder is "B" then
  822.     Put G into line 7 of bkgnd field holder
  823.   else if line 7 of bkgnd field holder is "G" then
  824.     If thecolors>3 then
  825.       Put Y into line 7 of bkgnd field holder
  826.     else
  827.       Put R into line 7 of bkgnd field holder
  828.     end if
  829.  
  830.   else if line 7 of bkgnd field holder is "Y" then
  831.     If thecolors>4 then
  832.       Put P into line 7 of bkgnd field holder
  833.     else
  834.       Put R into line 7 of bkgnd field holder
  835.     end if
  836.   else if line 7 of bkgnd field holder is "P" then
  837.     If thecolors>5 then
  838.       Put O into line 7 of bkgnd field holder
  839.     else
  840.       Put R into line 7 of bkgnd field holder
  841.     end if
  842.   else if line 7 of bkgnd field holder is "O" then
  843.     If thecolors>6 then
  844.       Put F into line 7 of bkgnd field holder
  845.     else
  846.       Put R into line 7 of bkgnd field holder
  847.     end if
  848.   else if line 7 of bkgnd field holder is "F" then
  849.     If thecolors>7 then
  850.       Put I into line 7 of bkgnd field holder
  851.     else
  852.       Put R into line 7 of bkgnd field holder
  853.     end if
  854.   else if line 7 of bkgnd field holder is "I" then
  855.     Put R into line 7 of bkgnd field holder
  856.   else
  857.     put R into line 7 of bkgnd field holder
  858.   end if
  859.  
  860. end mouseUp
  861.  
  862.  
  863.  
  864. -- part 44 (field)
  865. -- low flags: 01
  866. -- high flags: 0002
  867. -- rect: left=457 top=63 right=83 bottom=510
  868. -- title width / last selected line: 0
  869. -- icon id / first selected line: 0 / 0
  870. -- text alignment: 1
  871. -- font id: 2
  872. -- text size: 14
  873. -- style flags: 256
  874. -- line height: 18
  875. -- part name: Permcount
  876.